#!/bin/bash

VERSION=$(git describe --tags --always --dirty)
BUILD_TIME=$(date -u '+%Y-%m-%d %H:%M:%S')

go build -ldflags="-X 'github.com/AiGenApps/goout-server/handlers.Version=$VERSION' -X 'github.com/AiGenApps/goout-server/handlers.BuildTime=$BUILD_TIME'" -o goout-server 